package com.second.servers.iml;

//import com.redis.util.RedisUtil;
import com.second.dao.UsersMapper;
import com.second.entity.Users;
import com.second.servers.UsersServers;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
@ComponentScan(basePackages = {"com.kckj"})
public class UsersServerIml implements UsersServers {
    @Resource
    private UsersMapper usersMapper;
//    @Resource
//    private RedisUtil redisUtil;
    @Override
    public List<Users> getAllUsers() {
        return usersMapper.getAllUsers();
    }

    @Override
    public Users getUsersById(String id) {
//        redisUtil.set("setUsers",usersMapper.getUsersById(id));
        return usersMapper.getUsersById(id);
    }
}
